LinuxQuestions.org
Review your favorite Linux distribution.
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 06-29-2011, 08:11 AM   #1
g_paschoal
Member
 
Registered: Oct 2009
Posts: 131

Rep: Reputation: 15
KVM problem


Hi Guys I am building a KVM server on Ubuntu.

I already installed KVM on the system kernel. But when I create a new image it goes to a directory named ubuntu-kvm and a file named run.sh inside that directory.

I used this command
ubuntu-vm-builder kvm hardy --arch 'i386' --mem '128' --rootsize '4096' --swapsize '1024' --kernel-flavour 'generic' --hostname 'test1' --mirror 'http://archive.ubuntu.com/ubuntu' --components 'main' --name 'Gabriel Ubuntu' --user 'gabriel' --pass 'portal'

I just wanted to created 2 Virtual Machines, assign them IP address and let them work and run on background or I don't know how it's done... I need them boot up on the boot process as well.
Has anyone here have an experience with that?

can you help me?

Thanks
 
Old 06-29-2011, 11:52 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
I would suggest you install virt-manager and setup your VM's from there.
 
Old 06-29-2011, 12:44 PM   #3
g_paschoal
Member
 
Registered: Oct 2009
Posts: 131

Original Poster
Rep: Reputation: 15
I know.. but I just have access to the server via ssh.



I don't know what to do I really need help here...

I also want to know what's the best way to up the make those Imagines boot up when the Host server boots up.

Thanks
 
Old 06-29-2011, 03:53 PM   #4
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
ssh -X can get you that virt-manage GUI very easily
 
Old 06-29-2011, 05:22 PM   #5
g_paschoal
Member
 
Registered: Oct 2009
Posts: 131

Original Poster
Rep: Reputation: 15
And how Can I open it using putty?

Just google it and I didn't find anything
 
Old 06-29-2011, 05:28 PM   #6
g_paschoal
Member
 
Registered: Oct 2009
Posts: 131

Original Poster
Rep: Reputation: 15
Isn't exist a web admin application like VMware ESXi have ?

It will make my live much easier

Thanks
 
Old 06-30-2011, 12:53 AM   #7
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Rep: Reputation: Disabled
Quote:
Originally Posted by dyasny View Post
ssh -X can get you that virt-manage GUI very easily
You can use Xming to emulate X on Windows. On linux this shouldn't be needed when you run a gui.
 
Old 06-30-2011, 08:56 AM   #8
UnderV
Member
 
Registered: Mar 2010
Posts: 39

Rep: Reputation: 18
On ubuntu server:
1. On ubuntu box allow open /etc/ssh/sshd_config and enter: X11Forwarding yes
On windows box:
2. Install xming - http://sourceforge.net/projects/xming/
3. Start xming (it will put icon in tray, nothing exiting )
4. Open putty, enter hostname, port
5. Go to Connections -> SSH -> X11 -> check "Enable X11 forwarding" and enter "localhost:0",
6. Press "open".

In putty console run "virt-manager" and GUI magically appear in your Windows system.
Have fun
 
Old 06-30-2011, 10:37 AM   #9
saifelyzal
LQ Newbie
 
Registered: Jun 2011
Distribution: Redhat
Posts: 28

Rep: Reputation: Disabled
can you try to use virt-install


virt-install \
--virt-type kvm \
--name demo \
--ram 500 \
--disk path=/var/lib/libvirt/images/demo.img,size=8 \
--graphics vnc \
--cdrom /dev/cdrom \
 
Old 06-30-2011, 02:43 PM   #10
g_paschoal
Member
 
Registered: Oct 2009
Posts: 131

Original Poster
Rep: Reputation: 15
I found another work around for this. I installed a tool named openqrm. It's a very good tool I can integrate it to nagios.
And I can manager all my KVM machines from there... I'm loving it

what do you guys think about this tool?


Thanks for the help btw


bye
 
Old 07-02-2011, 10:13 AM   #11
g_paschoal
Member
 
Registered: Oct 2009
Posts: 131

Original Poster
Rep: Reputation: 15
Not working...
I did what you told me and I am getting this:


root@ubuntu:~# virt-manager
PuTTY X11 proxy: wrong authentication protocol attemptedPuTTY X11 proxy: wrong authentication protocol attemptedPuTTY X11 proxy: wrong authentication protocol attemptedPuTTY X11 proxy: wrong authentication protocol attemptedTraceback (most recent call last):
File "/usr/share/virt-manager/virt-manager.py", line 452, in <module>
main()
File "/usr/share/virt-manager/virt-manager.py", line 346, in main
raise RuntimeError(_("Unable to initialize GTK: %s") % str(e))
RuntimeError: Unable to initialize GTK: could not open display


can you help me?

Thanks
 
Old 07-02-2011, 04:48 PM   #12
g_paschoal
Member
 
Registered: Oct 2009
Posts: 131

Original Poster
Rep: Reputation: 15
I set up display to be 127.0.0.1:0 and it fixed the issue

thanks
 
  


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: Set up Spicevmc Channel on Ubuntu 11.04 as KVM Server and spice-vdagent as a KVM guest LXer Syndicated Linux News 0 06-15-2011 07:10 PM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
LXer: Set up Ubuntu 11.04 KVM to run is spice session on Fedora 14 KVM Server ( Libvirt Preview Env) LXer Syndicated Linux News 0 03-20-2011 12:00 AM
LXer: Set up RH VirtIO SCSI driver on Windows XP KVM at KVM-QEMU Instance on F14 LXer Syndicated Linux News 14 01-09-2011 12:21 PM
LXer: Install Oracle 11gR2 on SL6 KVM at KVM-QEMU Instance on SL 6 (alpha 3) LXer Syndicated Linux News 2 01-01-2011 06:42 AM

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

All times are GMT -5. The time now is 08:22 PM.

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