六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 77|回复: 0

Headless KVM on Ubuntu Gutsy 7.10 without SDL usin

[复制链接]

升级  56%

6

主题

6

主题

6

主题

童生

Rank: 1

积分
28
 楼主| 发表于 2013-1-15 03:08:28 | 显示全部楼层 |阅读模式
<div class="content">I was playing around with using KVM because I have used Xen and I was wondering about KVM. I have headless servers which I use to play around with this stuff and they don't have X installed on them. So I tried the standard method and that doesn't work because KVM automatically assumes that it should run SDL. The alternative is to run VNC. The version of KVM that ships with Gutsy is broken and does not properly handle VNC, therefore you have to get the latest from the repository and compile it yourself. Afterwards run the system.
I am leaving out all the steps for howto affectionados:
Remove the existing files:
apt-get remove kvm qemu
apt-get autoremove -y
Install headers, build-essential, lidbsd, and gcc 3.4:
apt-get install -y linux-headers-`uname -r` build-essential libsdl1.2-dev gcc-3.4
Now go grab the latest tar.gz from the kvm project on sourceforge.
./configure --prefix=/usr
make
make install
The installed version the "kvm" command is called qemu-system-x86_64 or something as such depending on your architecture the -x86_64 part might differ, you can create a link from kvm to qemu... if you're so inclined.
Run the vm with something like, the whole system runs as if it were an application under the host OS:
qemu-system-x86_64 -m 256 -cdrom /path/ubuntu-7.10-server-amd64.iso -std-vga -vnc 192.168.12.11:0 -boot d gutsy.img
192.168.12.11 should be an IP assigned to the host machine.
Connect to the IP, i.e. 192.168.12.11, via a vnc client and you should see the install dialog for ubuntu.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表