LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Command line setup of Red Hat 6 virt-manager to recognize image. (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/command-line-setup-of-red-hat-6-virt-manager-to-recognize-image-877617/)

geelsu 04-28-2011 09:01 AM

Command line setup of Red Hat 6 virt-manager to recognize image.
 
Hi all,

I am getting my feet wet here with virtualization. I have fumbled my way through and finally got an image that works and I'm OK with.

Now, I want to copy this image to another physical machine and put the image in /var/lib/libvirt/images. Is there a way via command line, perhaps via virsh, that I can tell virt-manager on this other physical machine about this image without having to use the GUI and do a New -> Import existing disk image? I would like to have the user login, execute sudo virt-manager and the image would be ready and waiting for the user to click Run.

Thanks to all for any info you might have.

smoker 04-29-2011 02:50 AM

man virsh
also
https://help.ubuntu.com/community/KVM/Virsh

geelsu 04-29-2011 06:38 AM

Man Page? Please!!! Why would I read that long and complicated thing when someone else might have already figured it out? :)

LUCKILY!!! man virt-install has some good examples to get you started. virsh wasn't the way to go for me at this time. Examples are our friends.

virt-install --name My-New-VM.img --ram 1024 --vcpus=2 --disk /var/lib/libvirt/images/My-Existing-VM.img --import --prompt

This almost gave me what I wanted. The screen size was smaller than the "Existing" image, but I see some graphics options in the ...uhhh ... the ... uhhh ... man page. :)

smoker 04-29-2011 12:51 PM

Quote:

Originally Posted by geelsu (Post 4340511)
Man Page? Please!!! Why would I read that long and complicated thing when someone else might have already figured it out? :)

I won't bother helping you next time. Maybe you can work it out for yourself in future before you ask questions. Unless you wish to rely on other peoples knowledge forever...
We are here to HELP, not to give you finished solutions.

geelsu 04-29-2011 01:36 PM

You did notice the smilie face right? I was trying to jest with you. Just wanted make sure all knew that. The information at this site and from all you is very valuable and often a single word or hint from someone opens the door.

Thanks also for the link to useful linux bookmarks. :)


All times are GMT -5. The time now is 01:48 AM.