John Summerfield
2007-Nov-15 22:11 UTC
[Fedora-xen] Attaching a virtual CD to an existing domu?
Pls note, you cannot reply off-list..
I have a Debian Etch system, I want to install more software and it''s
asking for the DVD.
I created the system a few days ago, I think this is the commaind I used:
virt-install --name=DebianEtch --ram=384 --vcpus=1
--file=/var/lib/xen/images/DebianEtch.img --file-size=3 --vnc --hvm
--cdrom=/var/lib/xen/images/debian-40r1-i386-DVD-1.iso --os-type=unix
I''ve tried various incantations:
[root@potoroo mail]# virsh attach-disk DebianEtch
/var/lib/xen/images/debian-40r1-i386-DVD-1.iso /dev/hde --driver file
--type cdrom --mode readonly
libvir: Xen Daemon error : POST operation failed: (xend.err ''Device
8448
not connected'')
[root@potoroo mail]# virsh attach-disk DebianEtch
/var/lib/xen/images/debian-40r1-i386-DVD-1.iso /dev/hdc --driver file
--type cdrom --mode readonly
libvir: Xen Daemon error : POST operation failed: (xend.err "Refusing to
reconfigure device vbd:5632 to {''uname'':
''file:/var/lib/xen/images/debian-40r1-i386-DVD-1.iso'',
''mode'': ''r'',
''dev'': ''/dev/hdc:cdrom''}")
[root@potoroo mail]# virsh attach-disk DebianEtch
/var/lib/xen/images/debian-40r1-i386-DVD-1.iso /dev/hdb --driver file
--type cdrom --mode readonly
libvir: Xen Daemon error : POST operation failed: (xend.err ''Device 832
not connected'')
[root@potoroo mail]#
None of those messages gives me any idea of what''s wrong.
I tried the xm command too:
This is based on the manual page. The man page is wrong:
xm block-attach DebianEtch
file://var/lib/xen/images/debian-40r1-i386-DVD-1.iso /dev/hdd ro
DebianEtch thinks its CD drive is /dev/hdc, so I really want the CD
attached to that.
[root@potoroo mail]# xm block-attach DebianEtch
file://var/lib/xen/images/debian-40r1-i386-DVD-1.iso /dev/hdc r
Error: Device /dev/hdc (5632, vbd) is already connected.
Usage: xm block-attach <Domain> <BackDev> <FrontDev>
<Mode> [BackDomain]
Create a new virtual block device.
[root@potoroo mail]#
This seems to work:
[root@potoroo mail]# xm block-attach DebianEtch
file://var/lib/xen/images/debian-40r1-i386-DVD-1.iso /dev/hdb r
[root@potoroo mail]#
but DebianEtch doesn''t know about it.
How _should_ this work?
I note block-detach doesn''t seem to do anything:
[root@potoroo mail]# xm block-detach DebianEtch 832
[root@potoroo mail]# xm block-detach DebianEtch 5696
[root@potoroo mail]# xm block-detach DebianEtch 5632
[root@potoroo mail]# xm list DebianEtch --long | less
[root@potoroo mail]# xm block-list DebianEtch
Vdev BE handle state evt-ch ring-ref BE-path
768 0 0 1 -1 -1 /local/domain/0/backend/vbd/3/768
5632 0 0 1 -1 -1 /local/domain/0/backend/vbd/3/5632
5696 0 0 1 -1 -1 /local/domain/0/backend/vbd/3/5696
832 0 0 1 -1 -1 /local/domain/0/backend/vbd/3/832
[root@potoroo mail]#
Is there a particular reason the install DVD image doesn''t, by default,
remain attached?
--
Cheers
John
-- spambait
1aaaaaaa@coco.merseine.nu Z1aaaaaaa@coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375
Please do not reply off-list
Richard W.M. Jones
2007-Nov-19 11:53 UTC
Re: [Fedora-xen] Attaching a virtual CD to an existing domu?
John Summerfield wrote:> Is there a particular reason the install DVD image doesn''t, by default, > remain attached?There''s a (faulty) assumption here that after the first boot the DVD image is no longer needed, so we unmount it. This is/was due to be fixed (mainly because it''s completely the wrong thing to do for Windows) but my Bugzilla-fu isn''t up to it this morning and I can''t find the tracker bug. Anyway, easiest thing in Debian is probably just to edit /etc/apt/sources.list and remove the CD-ROM lines. With those removed, apt will just go to the network to get updates rather than trying and failing to mount local CDs. Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903