Astaro Home Edition V8.2
From Proxmox VE
Introduction
In this HowTo I will describe, how to use a "virtio"-HDD in an "Astaro Security Gateway - Home Edition V8.2"
Using an Astaro-Firewall with VirtIO-Drivers
As of now (27.07.2011), you first have to install the "Astaro Security Gateway - Home Edition V8.1" in the usual way onto a virtual "scsi"-HDD. An installation-iso-image can be found here: http://download.astaro.com/Astaro_Security_Gateway/v8/software_appliance/iso/asg-8.102-2.1.iso
You then need to download the "up2date"-Version_8.2 from here: http://download.astaro.com/Astaro_Security_Gateway/v8/up2date/u2d-sys-8.200.tgz.gpg and update your firewall via the "WebAdmin" to V8.2 (+ wait for the automatic reboot).
Configure your firewall to get ssh-access (for easy "copy-and-paste") and logon as the "loginuser". Then: "su -" to get root.
To be able to modify the grub-config and build a new initrd-file, you have to remount "/boot" (by default it is only mounted "ro" --> # cat /etc/fstab | grep LABEL=boot):
# "mount -o remount,rw /boot"
Now edit some files: - "/boot/grub/device.map"
from: (hd0) /dev/sda to: (hd0) /dev/vda
- "/boot/grub/menu.lst" and "/boot/grub/menu.lst-default" that the default-entry in both files looks like this:
title Astaro Security Gateway V8.2 root (hd0,0) kernel /boot/vmlinuz root=/dev/disk/by-label/root vga=791 rootflags=data=ordered splash=silent initrd /boot/initrd
- "/etc/sysconfig/kernel" (add the modules "virtio_pci" and "virtio_blk")
# written by Astaro Installer INITRD_MODULES="edd ata_piix piix pata_acpi ata_generic ide_pci_generic sym53c8xx virtio_pci virtio_blk" SHMFS_SIZE="" # CFQ low latency (on|off). Default: off #IOSCHED_LOW_LATENCY="on"
No it's time to create a new initrd:
# mkinitrd -k /boot/vmlinuz -i /boot/initrd
After that edit the file "/etc/udev/rules.d/20-blockdev.rules" so that it contains the following content:
# tune block device
KERNEL=="vd[a-d]", ATTR{removable}=="0", RUN+="/lib/udev/blockdev"
KERNEL=="sd[a-d]", ATTR{removable}=="0", RUN+="/lib/udev/blockdev"
KERNEL=="hd[a-d]", ATTR{removable}=="0", RUN+="/lib/udev/blockdev"
So "shutdown -h now" and change the scsi-hdd to virtio-hdd by deleting the scsi-hdd and readding it as a virtio-hdd in the "Proxmox VE"-WebGUI.
Start the Astaro-VM and look via the VNC-console by pressing "F2" on the booting machine whether everything works fine.
Et voila - that's it! =D
[slotti, 29.07.2011]
