[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] xl cdrom commands do not work when VM created with empty cdrom



Hi, everyone.

I created VM like below.

- Environment
Xen-4.1.2, 4.1.4, 4.2.1
dom0: CentOS 5.8 x64
domU: Windows2008 x64 (has an empty cdrom device)

And to insert cdrom image, I did 'xl cdrom-insert 24 hdb file:/var/templates/myimage.iso'. But nothing happened in VM.

I tested various versions of xen above but none of them worked!

But if I created VM with cdrom device which has an iso image, commands work well...

Please check my test scenario below(VM created with 2 cdrom devices: hdb=with image, hdc=empty).


[root@dev-2 jntest2]#vi win2008_64.cfg

builder = 'hvm'

vcpus = 2

memory = 2048

name = 'windows-2008-64bit'

disk = [ 'tap:vhd:/root/xl-test/win2008_64.vhd,hda,w', 'file:/var/templates/CentOS-5.8-x86_64-bin-1of8.iso,hdb:cdrom,r', ',hdc:cdrom,r' ]

vncunused=1

vnclisten="0.0.0.0"

usb=1

usbdevice="tablet"

 

[root@dev-2 xl-test]# xl cre win2008_64.cfg

Parsing config file win2008_64.cfg

xc: info: VIRTUAL MEMORY ARRANGEMENT:

  Loader:        0000000000100000->0000000000171450

  TOTAL:         0000000000000000->000000007f800000

  ENTRY ADDRESS: 0000000000100000

xc: info: PHYSICAL MEMORY ALLOCATION:

  4KB PAGES: 0x0000000000000200

  2MB PAGES: 0x00000000000003fb

  1GB PAGES: 0x0000000000000000

Daemon running with PID 16112

 

[root@dev-2 xl-test]# xl list

Name                                        ID   Mem VCPUs      State   Time(s)

Domain-0                                     0  2731     8     r-----    2676.6

windows-2008-64bit                          24  2037     2     -b----      48.0

 

[root@dev-2 xl-test]# xl block-list 24

Vdev  BE  handle state evt-ch ring-ref BE-path                      

768   0   24     4     7      16383    /local/domain/0/backend/vbd/24/768

832   0   24     4     8      16382    /local/domain/0/backend/vbd/24/832

5632  0   24     1     9      16131    /local/domain/0/backend/tap/24/5632

 

[root@dev-2 xl-test]# xl cd-eject 24 hdb

#it works fine!

[root@dev-2 xl-test]# xl cd-insert 24 hdb file:/var/templates/FreeBSD-9.1-RC1-amd64-disc1.iso

#works fine again!

[root@dev-2 xl-test]# xl cd-insert 24 hdc file:/var/templates/FreeBSD-9.1-RC1-amd64-disc1.iso

#nothing happens in VM!!!!!!!

[root@dev-2 xl-test]# xl block-list 24

Vdev  BE  handle state evt-ch ring-ref BE-path                      

768   0   24     4     7      16383    /local/domain/0/backend/vbd/24/768

832   0   24     1     -1     -1       /local/domain/0/backend/vbd/24/832

5632  0   24     1     -1     -1       /local/domain/0/backend/vbd/24/5632

#hdc changed from tap to vbd

 
Thanks.


Jungnam Lee <jungnam.lee@xxxxxxxxxxx>
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.