I've done a search through all the Centos-virt emails, but can't find the answer.
I'm trying to install my first VM using Centos 5.5 as the host as well as the VM OS. It starts fine using VMM, but when it asks for the second disk of 8 CDs, the first one isn't ejected, although unmounted because I can open the tray, and won't recognize that the second CD is inserted.
Was I wrong in not waiting for the ejection, or am I missing something in the host setup. I'm using xen, if that matters from the 5.5 release.
Thanks for any clarity.
steve campbell
On Mon, 2011-06-27 at 16:02 -0400, Steve Campbell wrote:
... I'm trying to install my first VM using Centos 5.5 as the host as well as the VM OS. It starts fine using VMM, but when it asks for the second disk of 8 CDs, the first one isn't ejected, although unmounted because I can open the tray, and won't recognize that the second CD is inserted. ...
Why not use a DVD image in /var/lib/xen/images?
On Mon, 2011-06-27 at 15:37 -0600, Ed Heron wrote:
On Mon, 2011-06-27 at 16:02 -0400, Steve Campbell wrote:
... I'm trying to install my first VM using Centos 5.5 as the host as well as the VM OS. It starts fine using VMM, but when it asks for the second disk of 8 CDs, the first one isn't ejected, although unmounted because I can open the tray, and won't recognize that the second CD is inserted. ...
Why not use a DVD image in /var/lib/xen/images?
Or better, setup a local mirror using http://wiki.centos.org/HowTos/CreateLocalMirror
Then create your CentOS DomU with something like:
virt-install --name=<VMName> --vnc --vncport=59xx --noautoconsole --paravirt --ram=512 --vcpus=1 --network=bridge:<network bridge device> --file=<virtual disk device> --location=<mirror URL> --os-type=linux --os-variant=rhel5 --extra-args="xencons=tty noipv6"
Quoting Ed Heron Ed@Heron-ent.com:
On Mon, 2011-06-27 at 16:02 -0400, Steve Campbell wrote:
... I'm trying to install my first VM using Centos 5.5 as the host as well as the VM OS. It starts fine using VMM, but when it asks for the second disk of 8 CDs, the first one isn't ejected, although unmounted because I can open the tray, and won't recognize that the second CD is inserted. ...
Why not use a DVD image in /var/lib/xen/images?
Our company blocks bittorents due to abuse. I believe the DVD ISOs are now taking up two DVDs, so I'm not sure how I'd do this either. I'll research this a little more as I'm aware I can download the ISOs from the Japanese mirrors.
Now, back to the original question. What is necessary to make this work like a normal, non-VM install? Will KVM handle this differently? I'm sure that once I get around to doing more of this I'll need to use multiple CDs for something, so I may as well get it right up front.
Thanks Ed, for the suggestion. Every little clue helps me understand all of this.
steve
------------------------------------------------- This mail sent through IMP: http://horde.org/imp/
On 06/28/2011 02:07 AM, Steve Campbell wrote:
Why not use a DVD image in /var/lib/xen/images?
Our company blocks bittorents due to abuse. I believe the DVD ISOs are now taking up two DVDs, so I'm not sure how I'd do this either. I'll research this a little more as I'm aware I can download the ISOs from the Japanese mirrors.
the second ISO is not needed at install time. it contains only additional language support for OpenOffice
On Mon, 27 Jun 2011, Steve Campbell wrote:
Our company blocks bittorents due to abuse. I believe the DVD ISOs are now taking up two DVDs, so I'm not sure how I'd do this either
As I recall, the DVD's were formerly created from a pile of CD
The former script that I used was based on one from: ftp://people.redhat.com/ckloiber/mkdvdiso.sh but that link (and indeed FTP access to that server) seems to have disappeared
Google indicates there was a successor: mkdvd-rhel3u2.sh but it may well be that understanding the process, or setting up a local install mirror is faster than getting into DVD re-authoring
This is an old post, but looks as though it should still work
http://www.redhat.com/archives/psyche-list/2002-October/msg00252.html
... remastering custom install media is not all that hard, but it is tricky to diagnose when it fails. I'll give it a whirl using the -graft-points to mkisofs ... I see also in: dvd+rw-tools a tool: growisofs which looks promising
-- Russ herrold
On 28/06/2011 00:07, Steve Campbell wrote:
Now, back to the original question. What is necessary to make this work like a normal, non-VM install?
I haven't tried this with VMM, but you almost certainly have to run 'virsh detach-disk' to unmount the first DVD, and 'virsh attach-disk' to mount the second DVD. virsh is very poorly documented (http://libvirt.org/sources/virshcmdref/html-single/#sect-detach-disk), so you may have to mess around. My old Xen instructions for attaching/detaching iso images *on disk* are below. Try swapping 'file' to 'tap', and 'path-to-iso.iso' to '/dev/sr0', to use physical DVDs. Note that the newer virsh does not use a number to identify your VM, so use your VM name directly instead of '5' below.
# virsh list // get the VM ID, say '5' (or just use the name now?)
# virsh detach-disk 5 hdc // might not be hdc!
# virsh attach-disk 5 path-to-image.iso hdc --driver file --type cdrom --mode readonly
Will KVM handle this differently?
I think it will be identical - this has nothing to do with Xen or KVM per se.