Custom bridge script; upgrade from Fedora 6 to Fedora 8
by Ask Bjørn Hansen
Hi,
Since upgrading from Fedora 6 to Fedora 8 my custom bridge script
stopped working. I need to have both eth0 and eth1 bridged into each
XM. My xen machines are just defined in old-style /etc/xen/foo
configuration files, like
vif = [ 'mac=00:16:3e:42:08:1d, bridge=xenbr0', 'mac=00:16:3e:
42:08:1e, bridge=xenbr1' ]
I've changed that to
vif = [ 'mac=00:16:3e:42:08:1d, bridge=eth0', 'mac=00:16:3e:42:08:1e,
bridge=eth1' ]
but when I do a "xm create foo" I still end up with the new interfaces
on the wrong bridge!
# brctl show
bridge name bridge id STP enabled interfaces
eth0 8000.0030488c8a26 no peth0
eth1 8000.0030488c8a27 no peth1
xenbr0 8000.feffffffffff no vif1.0
xenbr1 8000.feffffffffff no vif1.1
If I manually move the vifX.X interfaces to the eth0/eth1 bridges then
everything works.
This is my custom bridge script:
#!/bin/sh
dir=$(dirname "$0")
"$dir/network-bridge" "$@" netdev=eth1 bridge=eth1
"$dir/network-bridge" "$@" netdev=eth0 bridge=eth0
Any ideas?
- ask
--
http://develooper.com/ - http://askask.com/
15 years, 11 months
domU auto start order
by Ranbir
Hi All,
Is it possible to auto start domU's listed in /etc/xen/auto in a
particular order? I imagine it is, but my reading comprehension or my
searching skills suck, because I can't find anything about this.
Thanks,
Ranbir
--
Kanwar Ranbir Sandhu
Linux 2.6.22.14-72.fc6 i686 GNU/Linux
21:12:35 up 1 day, 51 min, 2 users, load average: 1.69, 0.73, 0.49
16 years, 1 month
no guest configuration file in /etc/xen
by Akl Spec
Hi All,
I am newbie to Xen. I installed xen-3.1.0-13.fc8 on fc8 and configured two fedora guest domains, one with virt-manager and the other with virt-installer. Both the virtual servers are up and i can boot them successfully, but both the installation didn't create the guest configuration file in /etc/xen directory(docs says configuration file will be created here).
Can anybody please help me to find out those files??
Thanks in advance.
AKL
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
16 years, 1 month
VCL for xen?
by Yonas Abraham
Hi,
I am looking for open source application that does similar to NC
states Virtual Computing Library (VCL) for xen management. I have
seen ovirt.org, but it seems to require hardware virtualization, which
I don't have.
any pointers will be appreciated.
/yonas
16 years, 1 month
Prebuilt images for non-Fedora DomU's?
by Evan Lavelle
I've just had a go at installing the Debian 4.0 jailtime image on a
Fedora 8 Dom0, but had no luck. I've just posted on the xen list about
this, but the summary is that the debian image has an empty /boot
directory, the jailtime config file doesn't use pygrub, and the config
file expects to find "/boot/vmlinuz-2.6-xen" on the Dom0, which of
course I haven't got on Fedora 8.
Has anyone had any luck installing prebuilt "foreign" distributions on
Fedora 8, or do you all roll your own DomU's?
If you have found any usable images, can you give me a URL? I'm looking
for Debian 4.0 or Centos 5.0 or, failing that, Ubuntu 6.0.6 or Gentoo
2006.1.
I haven't tried virt-install because the FC7 docs say "With Fedora 7,
installation of Fedora 7 guests using anaconda is supported". Presumably
this means that it doesn't work for non-Fedora DomU's?
Thanks -
Evan
16 years, 1 month
How to re-reading the xen guest config file
by Terry Gotzon
What I am trying to do is add additional memory or CPU's to a running xen
guest that is already at the maximum allocated from build time. Currently, I
edit the config file for the guest and increase the memory or cpu and then
shutdown and start the VM. What I would like to do is re-read the config
file without having to restart the server. Does anyone know of a way to do
this, if possible?
Thanks
Terry
16 years, 2 months
rawhide guests on F-8 host
by Orion Poplawski
I just build a F-8 x86_64 guest on a F-8 x86_64 host, then did a yum
upgrade to rawhide. Now the domain will not start. Is this expected?
[2008-02-21 14:47:07 2774] DEBUG (XendBootloader:100) Launching
bootloader as ['/usr/bin/pygrub',
'--output=/var/run/xend/boot/xenbl.23509',
'/export/data1/xen_disk_fdev_x86_64'].
[2008-02-21 14:47:12 2103] DEBUG (XendDomainInfo:1640)
_initDomain:shadow_memory=0x0, memory_static_max=0x20000000,
memory_static_min=0x0.
[2008-02-21 14:47:12 2103] DEBUG (balloon:116) Balloon: 528696 KiB free;
need 524288; done.
[2008-02-21 14:47:12 2103] INFO (image:129) buildDomain os=linux dom=2
vcpus=2
[2008-02-21 14:47:12 2103] DEBUG (image:198) domid = 2
[2008-02-21 14:47:12 2103] DEBUG (image:199) memsize = 512
[2008-02-21 14:47:12 2103] DEBUG (image:200) image =
/var/run/xend/boot/boot_kernel.vlVqWs
[2008-02-21 14:47:12 2103] DEBUG (image:201) store_evtchn = 1
[2008-02-21 14:47:12 2103] DEBUG (image:202) console_evtchn = 2
[2008-02-21 14:47:12 2103] DEBUG (image:203) cmdline = ro
root=LABEL=/ console=xvc0
[2008-02-21 14:47:12 2103] DEBUG (image:204) ramdisk =
/var/run/xend/boot/boot_ramdisk.WvuY8R
[2008-02-21 14:47:12 2103] DEBUG (image:205) vcpus = 2
[2008-02-21 14:47:12 2103] DEBUG (image:206) features =
[2008-02-21 14:47:12 2103] INFO (XendDomainInfo:1458) createDevice:
console : {'devid': 0, 'protocol': 'vt100', 'location': '2', 'uuid':
'8ee7025a-6ed3-ba11-1f3d-589420bd567b'}
[2008-02-21 14:47:12 2103] DEBUG (DevController:117) DevController:
writing {'protocol': 'x86_64-abi', 'state': '1', 'backend-id': '0',
'backend': '/local/domain/0/backend/console/2/0'} to
/local/domain/2/device/console/0.
[2008-02-21 14:47:12 2103] DEBUG (DevController:119) DevController:
writing {'domain': 'xenfdev', 'protocol': 'vt100', 'uuid':
'8ee7025a-6ed3-ba11-1f3d-589420bd567b', 'frontend':
'/local/domain/2/device/console/0', 'state': '1', 'location': '2',
'online': '1', 'frontend-id': '2'} to /local/domain/0/backend/console/2/0.
[2008-02-21 14:47:12 2103] INFO (XendDomainInfo:1458) createDevice: vbd
: {'uuid': 'a4f5058f-f598-0c07-9bff-9a930b73c629', 'bootable': 1,
'devid': 51712, 'driver': 'paravirtualised', 'dev': 'xvda:disk',
'uname': 'file:/export/data1/xen_disk_fdev_x86_64', 'mode': 'w',
'backend': '0'}
[2008-02-21 14:47:12 2103] DEBUG (DevController:117) DevController:
writing {'virtual-device': '51712', 'device-type': 'disk', 'protocol':
'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/vbd/2/51712'} to /local/domain/2/device/vbd/51712.
[2008-02-21 14:47:12 2103] DEBUG (DevController:119) DevController:
writing {'domain': 'xenfdev', 'frontend':
'/local/domain/2/device/vbd/51712', 'uuid':
'a4f5058f-f598-0c07-9bff-9a930b73c629', 'dev': 'xvda', 'state': '1',
'params': '/export/data1/xen_disk_fdev_x86_64', 'mode': 'w', 'online':
'1', 'frontend-id': '2', 'type': 'file'} to
/local/domain/0/backend/vbd/2/51712.
[2008-02-21 14:47:12 2103] INFO (XendDomainInfo:1458) createDevice: vif
: {'bridge': 'eth0', 'uuid': '8c47fd72-2fe1-da66-236c-59f501b5c465',
'script': 'vif-bridge', 'devid': 0, 'mac': '40:00:00:00:00:01',
'backend': '0'}
[2008-02-21 14:47:12 2103] DEBUG (DevController:117) DevController:
writing {'mac': '40:00:00:00:00:01', 'handle': '0', 'protocol':
'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend':
'/local/domain/0/backend/vif/2/0'} to /local/domain/2/device/vif/0.
[2008-02-21 14:47:12 2103] DEBUG (DevController:119) DevController:
writing {'bridge': 'eth0', 'domain': 'xenfdev', 'handle': '0', 'uuid':
'8c47fd72-2fe1-da66-236c-59f501b5c465', 'script':
'/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend':
'/local/domain/2/device/vif/0', 'mac': '40:00:00:00:00:01', 'online':
'1', 'frontend-id': '2'} to /local/domain/0/backend/vif/2/0.
[2008-02-21 14:47:13 2103] DEBUG (XendDomainInfo:2116) Storing VM
details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid':
'75d3d53b-8a9c-d5bd-cdc4-207b894c6ac6', 'on_reboot': 'restart',
'start_time': '1203630433.0', 'on_poweroff': 'destroy', 'on_xend_start':
'ignore', 'on_crash': 'restart', 'vcpus': '2', 'vcpu_avail': '3',
'image': "(linux (kernel ) (notes (FEATURES
'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel')
(VIRT_BASE 18446744071562067968) (GUEST_VERSION 2.6) (PADDR_OFFSET
18446744071562067968) (GUEST_OS linux) (HYPERCALL_PAGE
18446744071564189696) (LOADER generic) (SUSPEND_CANCEL 1) (ENTRY
18446744071564165120) (XEN_VERSION xen-3.0)))", 'name': 'xenfdev'}
[2008-02-21 14:47:13 2103] DEBUG (XendDomainInfo:956) Storing domain
details: {'console/ring-ref': '196480', 'image/entry':
'18446744071564165120', 'console/port': '2', 'store/ring-ref': '196481',
'image/loader': 'generic', 'vm':
'/vm/75d3d53b-8a9c-d5bd-cdc4-207b894c6ac6',
'control/platform-feature-multiprocessor-suspend': '1',
'image/guest-os': 'linux', 'cpu/1/availability': 'online',
'image/features/writable-descriptor-tables': '1', 'image/virt-base':
'18446744071562067968', 'memory/target': '524288',
'image/guest-version': '2.6', 'image/features/supervisor-mode-kernel':
'1', 'console/limit': '1048576', 'image/paddr-offset':
'18446744071562067968', 'image/hypercall-page': '18446744071564189696',
'image/suspend-cancel': '1', 'cpu/0/availability': 'online',
'image/features/pae-pgdir-above-4gb': '1',
'image/features/writable-page-tables': '1',
'image/features/auto-translated-physmap': '1', 'name': 'xenfdev',
'domid': '2', 'image/xen-version': 'xen-3.0', 'store/port': '1'}
[2008-02-21 14:47:13 2103] DEBUG (XendDomainInfo:1040)
XendDomainInfo.handleShutdownWatch
[2008-02-21 14:47:13 2103] WARNING (XendDomainInfo:1203) Domain has
crashed: name=xenfdev id=2.
[2008-02-21 14:47:13 2103] ERROR (XendDomainInfo:1333) VM xenfdev
restarting too fast (6.067748 seconds since the last restart). Refusing
to restart to avoid loops.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion(a)cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com
16 years, 2 months
failure to retrieve ministrg2.img in guest boot
by Kenneth Nagin
I successful created a XEN guest in fedora 8. However, the guest will not
boot.
The failure occurs shortly after setting up the IP network settings.
The error message claims that it can not retrieve ministg2.img.
"failure to retrieve
http://download.fedora.redhat.com
//pub/fedora/linux/releases/8/Fedora/i386/os/ministrg2.img."
Notice that the error message reads "//pub".
However, the my input for the path had only one forward slash..
Of course, I could not have gotten this far in the install with a faulty
path.
In xend-debug.log read:
File "/usr/lib/python2.5/site-packages/xen/xend/XendDomain.py", line 524,
in domain_lookup
raise XendInvalidDomain(str(domid))
XendInvalidDomain: <Fault 3: 'system3'>
Thanks in advance for any help on how to resolve this issue..
Kenneth Nagin
16 years, 2 months
domU stops at --> EXT3 FS on sda1, internal journal
by Naveen R
Hello everyone, i am using fedora 7 and tried to run the xen images
available at jailtime.org site and was able to start the os but it stops
after the following log and will not proceed any further. The state in
virt-manager shows its running but the console stops after the following.
Can anyone tell me whats the problem. Thanks in advance.
Using config file "/xen/debian.4-0/debian.4-0.xen3.cfg".
Started domain debian.4-0
Linux version 2.6.20-2925.9.fc7xen (
kojibuilder(a)xenbuilder4.fedora.phx.redhat.com) (gcc version 4.1.2 20070502
(Red Hat 4.1.2-12)) #1 SMP Tue May 22 08:53:03 EDT 2007
BIOS-provided physical RAM map:
sanitize start
sanitize bail 0
copy_e820_map() start: 0000000000000000 size: 000000000bc00000 end:
000000000bc00000 type: 1
Xen: 0000000000000000 - 000000000bc00000 (usable)
0MB HIGHMEM available.
188MB LOWMEM available.
NX (Execute Disable) protection: active
Zone PFN ranges:
DMA 0 -> 48128
Normal 48128 -> 48128
HighMem 48128 -> 48128
early_node_map[1] active PFN ranges
0: 0 -> 48128
ACPI in unprivileged domain disabled
Built 1 zonelists. Total pages: 47752
Kernel command line: root=/dev/sda1 ro ip=:1.2.3.4::::eth0:dhcp
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c135f000 soft=c133f000
PID hash table entries: 1024 (order: 10, 4096 bytes)
Xen reported: 1804.083 MHz processor.
Console: colour dummy device 80x25
Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
... MAX_LOCKDEP_SUBCLASSES: 8
... MAX_LOCK_DEPTH: 30
... MAX_LOCKDEP_KEYS: 2048
... CLASSHASH_SIZE: 1024
... MAX_LOCKDEP_ENTRIES: 8192
... MAX_LOCKDEP_CHAINS: 16384
... CHAINHASH_SIZE: 8192
memory used by lock dependency info: 1064 kB
per task-struct memory footprint: 1200 bytes
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Software IO TLB disabled
vmalloc area: cc800000-f4ffe000, maxmem 2d7fe000
Memory: 168448k/192512k available (2030k kernel code, 15688k reserved, 1079k
data, 180k init, 0k highmem)
virtual kernel memory layout:
fixmap : 0xf5315000 - 0xf57fe000 (5028 kB)
pkmap : 0xf5000000 - 0xf5200000 (2048 kB)
vmalloc : 0xcc800000 - 0xf4ffe000 ( 647 MB)
lowmem : 0xc0000000 - 0xcbc00000 ( 188 MB)
.init : 0xc130e000 - 0xc133b000 ( 180 kB)
.data : 0xc11fb8b9 - 0xc1309714 (1079 kB)
.text : 0xc1000000 - 0xc11fb8b9 (2030 kB)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 4512.90 BogoMIPS
(lpj=9025800)
Security Framework v1.0.0 initialized
SELinux: Initializing.
SELinux: Starting in permissive mode
selinux_register_security: Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 11k freed
Brought up 1 CPUs
Grant table initialized
NET: Registered protocol family 16
Brought up 1 CPUs
PCI: Fatal: No config space access function found
PCI: setting up Xen PCI frontend stub
Setting up standard PCI resources
BUG: at kernel/fork.c:994 copy_process()
[<c1005d9e>] show_trace_log_lvl+0x1a/0x2f
[<c1006347>] show_trace+0x12/0x14
[<c10063c2>] dump_stack+0x16/0x18
[<c101d040>] copy_process+0x195/0x1245
[<c101e140>] do_fork+0x50/0x117
[<c1003351>] kernel_thread+0x8e/0x96
[<c102c6fd>] __call_usermodehelper+0x2d/0x46
[<c102cd4b>] run_workqueue+0x89/0x145
[<c102d70d>] worker_thread+0xd5/0x102
[<c102ff23>] kthread+0xb3/0xdc
[<c10058df>] kernel_thread_helper+0x7/0x10
=======================
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
xen_mem: Initialising balloon driver.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: System does not support PCI
PCI: System does not support PCI
NetLabel: Initializing
NetLabel: domain hash size = 128
NetLabel: protocols = UNLABELED CIPSOv4
NetLabel: unlabeled traffic allowed by default
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 6, 262144 bytes)
TCP bind hash table entries: 4096 (order: 5, 131072 bytes)
TCP: Hash tables configured (established 8192 bind 4096)
TCP reno registered
checking if image is initramfs... it is
Freeing initrd memory: 7272k freed
IA-32 Microcode Update Driver: v1.14-xen <tigran(a)veritas.com>
audit: initializing netlink socket (disabled)
audit(1202740570.370:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux: Registering netfilter hooks
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
rtc: IRQ 8 is not free.
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
input: Macintosh mouse button emulation as /class/input/input0
Xen virtual console successfully installed as xvc0
Event-channel device installed.
usbcore: registered new interface driver libusual
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: No PS/2 controller found. Probing ports directly.
i8042.c: No controller found.
mice: PS/2 mouse device common for all mice
TCP bic registered
Initializing XFRM netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI No-Shortcut mode
XENBUS: Device with no driver: device/vbd/2049
XENBUS: Device with no driver: device/vbd/2050
Freeing unused kernel memory: 180k freed
Write protecting the kernel read-only data: 762k
Registering block device major 8
blkfront: sda1: barriers enabled
blkfront: sda2: barriers enabled
USB Universal Host Controller Interface driver v3.0
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
SCSI subsystem initialized
register_blkdev: cannot get major 8 for sd
libata version 2.00 loaded.
netfront: Initialising virtual ethernet driver.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Adding 65528k swap on /dev/sda2. Priority:-1 extents:1 across:65528k
EXT3 FS on sda1, internal journal
16 years, 2 months
DVD not mountable on FC8 DomU?
by Evan Lavelle
I have an FC8 Dom0 which has identical setups for a Centos 5 and an FC8
DomU (both HVM). However, I can't mount a (file) DVD on the FC8 DomU,
but I can do this on the Centos 5 (and various other) DomU's.
The FC8 config file contains:
disk = [ 'phy:/dev/VG_Guests/FC8-64-001,ioemu:hda,w' ,
'file:/dumps/ISO/FC8-64/FC8-64.ISO,hdc:cdrom,r']
The Centos config file is identical, except that the 'FC8' strings are
changed. FC8 installed Ok using this cdrom line, and it also boots up
from this "DVD" if I change the boot order in the config file.
The FC8 DomU /etc/fstab contains:
/dev/sr0 /media/dvd auto
pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
This line is identical for the FC8 Dom0, the Centos 5 DomU, and the FC8
DomU, except that Centos 5 uses /dev/hdc instead of /dev/sr0.
Any ideas why I can't mount the DVD on the FC8 DomU? mount reports that
the filesystem is read-only, so it's getting some of the way there, but
it then complains that the options are wrong:
> mount: block device /dev/sr0 is write-protected, mounting read-only
> mount: wrong fs type, bad option, bad superblock on /dev/sr0,
> missing codepage or helper program, or other error
I've tried various different options and filesystems without luck. The
DVD disk file itself is Ok, because I can still boot up from it.
One other thing I tried was changing the cdrom line in the config file to
'file:/dumps/ISO/FC8-64/FC8-64.ISO,sr0:cdrom,r'
but this doesn't help - after booting, the FC8 DomU doesn't have a DVD
at all in /dev; the /dev/sr0 and /dev/cdrom entries have disappeared.
Thanks -
Evan
16 years, 2 months