I got the below error while trying to start xen virtual os.
[root@adcdap11 linux_vm]# xm create vm.cfg
Using config file "./vm.cfg".
Error: Device 2064 (vbd) could not be connected. /FMW/vms/linux_vm/firststart.img does not exist.
After I removed the contents of /etc/exports :
[root@adcdap11 linux_vm]# cat /etc/exports
/FMW *(ro,no_root_squash)
[root@adcdap11 linux_vm]# > /etc/export
and recreated the vm.cfg file i was good.
[root@adcdap11 linux_vm]# xm create vm.cfg
Using config file "./vm.cfg".
Started domain LeanX (id=22)
[root@adcdap11 linux_vm]#
[root@adcdap11 linux_vm]# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 512 16 r----- 12285.0
LeanX 22 6144 16 -b---- 6.4
contents of vm.cfg file:;
[root@adcdap11 linux_vm]# cat vm.cfg
acpi = 1
apic = 1
bootloader = '/usr/bin/pygrub'
disk = ['file:/FMW/vms/linux_vm/DomU-5EL-U5-x86_64-1.0.3.img,hda,w',
'file:/FMW/vms/linux_vm/firststart.img,sdb,w',
#'phy:/dev/mapper/DomUVol-idm_d2,sdc,w',
'file:/FMW/vms/linux_vm/swap,sdd,w',
'file:/FMW/vms/linux_vm/tmp,sde,w',
]
localtime = 0
memory = 6144
name = 'LeanX'
ne2000 = 0
on_crash = 'preserve'
on_poweroff = 'destroy'
on_reboot = 'restart'
on_shutdown = 'shutdown'
pae = 1
sdl = 0
serial = 'pty'
superpages = 1
timer_mode = 2
vcpus = 16
vif = ['ip=10.232.145.108']
vif_other_config = []
vnc = 1
[root@adcdap11 linux_vm]# xm create vm.cfg
Using config file "./vm.cfg".
Error: Device 2064 (vbd) could not be connected. /FMW/vms/linux_vm/firststart.img does not exist.
After I removed the contents of /etc/exports :
[root@adcdap11 linux_vm]# cat /etc/exports
/FMW *(ro,no_root_squash)
[root@adcdap11 linux_vm]# > /etc/export
and recreated the vm.cfg file i was good.
[root@adcdap11 linux_vm]# xm create vm.cfg
Using config file "./vm.cfg".
Started domain LeanX (id=22)
[root@adcdap11 linux_vm]#
[root@adcdap11 linux_vm]# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 512 16 r----- 12285.0
LeanX 22 6144 16 -b---- 6.4
contents of vm.cfg file:;
[root@adcdap11 linux_vm]# cat vm.cfg
acpi = 1
apic = 1
bootloader = '/usr/bin/pygrub'
disk = ['file:/FMW/vms/linux_vm/DomU-5EL-U5-x86_64-1.0.3.img,hda,w',
'file:/FMW/vms/linux_vm/firststart.img,sdb,w',
#'phy:/dev/mapper/DomUVol-idm_d2,sdc,w',
'file:/FMW/vms/linux_vm/swap,sdd,w',
'file:/FMW/vms/linux_vm/tmp,sde,w',
]
localtime = 0
memory = 6144
name = 'LeanX'
ne2000 = 0
on_crash = 'preserve'
on_poweroff = 'destroy'
on_reboot = 'restart'
on_shutdown = 'shutdown'
pae = 1
sdl = 0
serial = 'pty'
superpages = 1
timer_mode = 2
vcpus = 16
vif = ['ip=10.232.145.108']
vif_other_config = []
vnc = 1
This comment has been removed by the author.
ReplyDeleteI have also seen if there is space after .img xm create wont start vm and give (vbd) file not found errors.
ReplyDelete