Virtualisation

15 posts in Virtualisation

Xen: iptables issue

· Linux, Software, Virtualisation

vm3:/# iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j DNAT --to-destination 85.12.6.173:8180
WARNING: Could not open 'kernel/net/netfilter/x_tables.ko': No such file or directory
FATAL: Could not open 'kernel/net/ipv4/netfilter/ip_tables.ko': No such file or directory
iptables v1.4.2: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

Solution:

vm3:/# depmod
vm3:/# iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j DNAT --to-destination 85.12.6.173:8180

All ok :)

Xen: PTY allocation request failed

· Errors, Linux, Software, Virtualisation

$ ssh vm3.rootspirit.com -l root
root@vm3.rootspirit.com's password:
PTY allocation request failed on channel 0
stdin: is not a tty
Solution:
Kill the DomU (xm console *might* work, but somehow rarely works for me).
mkdir /tmp/disk
mount /path/to/disk.img /tmp/disk
chroot /tmp/disk /bin/bash
=> in chroot env
nano -w /etc/fstab
And add (though this is probably not needed):
none            /dev/pts      devpts    defaults        0   0
And install udev:
apt-get install udev
Clean up, and restart DomU
exit
umount /tmp/disk
xm create /path/to/xen/vm.cfg
Should do the trick. :)

Xen: Failed to find an unused loop device

· Errors, Linux, Software, Virtualisation

I had to start a new Xen domU this afternoon,

xm create vm#.domain

But this resulted in following error:

Error: Device 5632 (vbd) could not be connected. Failed to find an unused loop device

Solution:

Create /etc/modprobe.d/local-loop.conf with this content:

options loop max_loop=64

Turn off all DomUs, yes, bummer. You’ll need to reload the loop module which won’t work if Xen is still using them. xm list should only display Domain-0.

Parallels + Ubuntu

· Apple, Linux, Virtualisation

I finally got a reply from the Parallels support team. After using the alternate Parallels installer it finally works again! Even after rebooting Mac! joy

Before trying to run Vista/Bootcamp through Parallels again, I’m waiting till the end of my exams (Thursday). Don’t want to blow up my Windows install again when I’m in desperate need of it. ;)

As usual with Parallels, creating/installing a new OS isn’t easy. Wether it crashes or you get a bunch of errors, you’re always up for a day full of fun!

Bootcamp

· Apple, Errors, Virtualisation, Windows

For a few courses I’m following at school, I need to be able to run Windows.

As I’m owning a Macbook Pro (with Leopard) that shouldn’t have to be any problem using Bootcamp.

I created a 5 Gb partition and installed WinXP a few weeks ago. So far all fine.

As I don’t really like to reboot into XP (I can’t access my mails, don’t have my IRC client, all my Camino tabs are closed, …) I tried Parallels.