LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-28-2011, 09:01 AM   #1
geelsu
LQ Newbie
 
Registered: Apr 2004
Location: Maryland, USA
Distribution: RHEL 5,6
Posts: 21

Rep: Reputation: 0
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.
 
Old 04-29-2011, 02:50 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

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

Last edited by smoker; 04-29-2011 at 02:59 AM.
 
Old 04-29-2011, 06:38 AM   #3
geelsu
LQ Newbie
 
Registered: Apr 2004
Location: Maryland, USA
Distribution: RHEL 5,6
Posts: 21

Original Poster
Rep: Reputation: 0
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.
 
Old 04-29-2011, 12:51 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
Originally Posted by geelsu View Post
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.
 
Old 04-29-2011, 01:36 PM   #5
geelsu
LQ Newbie
 
Registered: Apr 2004
Location: Maryland, USA
Distribution: RHEL 5,6
Posts: 21

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Hacking libvirt/virsh/virt-manager/virt-install at Xen 4.0 Dom0 on top of Ubunt LXer Syndicated Linux News 0 05-06-2010 02:50 PM
LXer: Virt-install&Virt-manager at Xen 4.0-rc8 (2.6.32.10 pvops) Dom0 on top Ubuntu K LXer Syndicated Linux News 0 03-26-2010 09:41 PM
[SOLVED] Keyboard problems: virt-manager fails, but kvm from the command line works kenneho Linux - Virtualization and Cloud 1 11-14-2009 11:11 AM
Red Hat virt-manager problem and some Xen andrei048 Red Hat 0 08-14-2008 06:58 AM
I need a command line image viewer/manager... branvu Linux - Software 1 02-25-2006 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration