A personal repository of random information in compensation for a fatigued biological computer
poxmox2011
FQDN: proxmox.hairyraho.com
192.168.1.11
Note: Had 4 x 2TB drives on SATA 0-3 & 500GB system drive on Sata5 port but Proxmox would boot after install unless I reinstall with system drive on Sata 0 port.
Now to try some NAS software:
Installed Openfiler 2.3 as VM101, start & update
Openfiler doesnt have VirtIO so we cant use that.
Need to assign 4 x 2 TB drives directly to this VM:
http://forum.proxmox.com/archive/index.php/t-6192.html?s=168bbf0690c75d62f60c2e637766d1a7:
Edit the VM config /etc/qemu-server/<vmid>.conf, and directly assign the device. For example:
ide0: /dev/sdb2
---
and another example (but virtio):
ostype: l26
memory: 512
onboot: 1
name: OpenFiler-23-x64
ide2: none,media=cdrom
smp: 1
vlan0: rtl8139=8A:04:3D:24:BA:44
bootdisk: scsi0
scsi0: vm-102-disk.qcow2
virtio0: /dev/sdb,media=disk
virtio1: /dev/sdc,media=disk
virtio2: /dev/sdd,media=disk
virtio3: /dev/sde,media=disk
Remember default user is openfiler/password
VirtIO **NOT DONE**
https://project.openfiler.com/tracker/ticket/900
Hallo, following your directions, I was able to make Openfiler work with virtio devices (both network and block devices). Just for reference, here are the changes I made to the code in /opt/openfile/sbin/list-disks.pl
after line 190, insert:
elsif (/\d+\s+\d+\s+\d+\s+vd(\S)\s/ || /\d+\s+\d+\s+\d+\s+vd(\S\D)\s/) {
# virtio raid device
local $d = $1;
push(@devs, "/dev/vd$d");
}
after line 312, insert:
elsif ($disk->{'device'} =~ /\/vd(\S)$/) {
# VIRTIO disk
$disk->{'desc'} = &text('select_device', 'IDE', uc($1));
$disk->{'type'} = 'ide';
}
Thanks! Alex
P.S.: Should I close the ticket?
03/29/09 02:01:21: Modified by aliguori
Did you also update how the initrd is generated? If so, is this in a branch in SVN? If there's an easy way to test it, I'll happy confirm that your changes fixed the problem.
Promox: Added to /etc/qemu-server/101.conf (reminder use nano editor at proxmox command line)
after:
ide0: local:101/vm-101-disk-1.raw
added:
scsi10: /dev/sdb
scsi11: /dev/sdc
scsi12: /dev/sdd
scsi13: /dev/sde
Proxmox: Openfiler VM hardware now lists the above 4 x drives..
Start Openfiler:
Openfiler -> Software raid:
- Create new raid array: can see /dev/sd[a-d]
- created new raid5 (512kb block) array
Openfile -> Volume groups: created new VG bbdafvg using all space
Openfiler -> Add volume:
- fnfv 20GB EXT3
- rateen 500GB EXT3
watch -n 1 cat /proc/mdstat
ok, attempt 2 with VirtIO in openfiler:
deleted OpenfilerVM and recreated with NIC = E1000
Did this:
install with IDE & e1000edit /opt/openfiler/sbin/list-disks.plinsert at 192:elsif (/\d+\s+\d+\s+\d+\s+vd(\S)\s/ || /\d+\s+\d+\s+\d+\s+vd(\S\D)\s/) {# virtio raid devicelocal $d = $1;push(@devs, "/dev/vd$d");}insert at 340:elsif ($disk->{'device'} =~ /\/vd(\S)$/) {# VIRTIO disk$disk->{'desc'} = &text('select_device', 'IDE', uc($1));$disk->{'type'} = 'ide';}mkinitrd -f /boot/initrd-2.6.32-71.18.1.el6-0.20.smp.gcc4.1.x86_64.img --with=virtio_pci --with=virtio_blk --with=virtio_net $(uname -r)check MAC with ifconfig, then replace old MAC to what's reported by ifconfig in these files:/etc/udev/rules.d/70-persistent-net.rules/etc/sysconfig/network-scripts/ifcfg-eth0rebootsee also: https://project.openfiler.com/tracker/ticket/900
Proxmox: edit /etc/qemu-server/101.conf:
name: Openfiler2.3ide2: none,media=cdromvlan0: e1000=B2:8A:7C:79:EB:7Bbootdisk: ide0ostype: l26ide0: local:101/vm-101-disk-1.rawvirtio0: /dev/sdb,media=diskvirtio1: /dev/sdc,media=diskvirtio2: /dev/sdd,media=diskvirtio3: /dev/sde,media=diskmemory: 768sockets: 1
Cant see drives in main home screen but can in add raid array..
Created raid 5 array.
Added VG bbdafvg
Added Vols
- fnfv 20GB EXT3
- rateen 500GB EXT3
- public
PCI Passthrough
http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM
In host: lspci to find device:
proxmox:~# lspci00:00.0 Host bridge: Advanced Micro Devices [AMD] RS880 Host Bridge00:01.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (int g00:04.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 000:0a.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE00:11.0 SATA controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller00:12.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Control00:12.1 USB Controller: ATI Technologies Inc SB7x0 USB OHCI1 Controller00:12.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controll00:13.0 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Control00:13.1 USB Controller: ATI Technologies Inc SB7x0 USB OHCI1 Controller00:13.2 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controll00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 3c)00:14.1 IDE interface: ATI Technologies Inc SB7x0/SB8x0/SB9x0 IDE Controller00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)00:14.3 ISA bridge: ATI Technologies Inc SB7x0/SB8x0/SB9x0 LPC host controller00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge00:14.5 USB Controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI2 Control00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTran00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address M00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Cont00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellan00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Cont01:05.0 VGA compatible controller: ATI Technologies Inc RS880 [Radeon HD 4250]01:05.1 Audio device: ATI Technologies Inc RS880 Audio Device [Radeon HD 4200]02:00.0 Multimedia video controller: Conexant Systems, Inc. CX23885 PCI Video an03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI E04:0e.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Contro
Create new VM MythTV
myth / poxmox2011