Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ARM64 (aarch64) #2030

Merged
merged 6 commits into from
Mar 4, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions shared/cfg/guest-hw.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ variants:
# Device selection for the NDISTest server machine
dp_regex_servermsgdev = VirtIO Ethernet Adapter$
dp_regex_serversupportdev = VirtIO Ethernet Adapter #2$
arm64:
# Currently arm only supports virtio-net-device
nic_model = virtio-net-device
# Currently arm does not support msix vectors
enable_msix_vectors = no
- xennet:
# placeholder
- spapr-vlan:
Expand Down Expand Up @@ -62,6 +67,13 @@ variants:
# Add -drive ...boot=yes unless qemu-kvm is 0.12.1.2 or newer
# then kvm_vm will ignore this option.
image_boot=yes
arm64:
# Direct usage of virtio-blk-device (using mmio transports) is used
# on arm64.
drive_format=virtio-blk-device
image_boot=yes
cd_format = scsi-cd
scsi_hba = virtio-scsi-device
- virtio_scsi:
no WinXP
# supported formats are: scsi-hd, scsi-cd, scsi-disk, scsi-block,
Expand Down
20 changes: 20 additions & 0 deletions shared/cfg/machines.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,23 @@ variants:
- @pseries:
only ppc64
machine_type = pseries
# No support for VGA yet
vga = none
inactivity_watcher = none
take_regular_screendumps = no
# No support for USB-uhci
usb_type = pci-ohci
usb_type_usb1 = pci-ohci
usb_controller_tablet1 = ohci
- @arm64:
only aarch64
auto_cpu_model = "no"
cpu_model = host
machine_type = virt
# No support for VGA yet
vga = none
inactivity_watcher = none
take_regular_screendumps = no
# Currently no USB support
usbs =
usb_devices =
33 changes: 16 additions & 17 deletions shared/unattended/CentOS-7-0.ks
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
install
KVM_TEST_MEDIUM
graphical
poweroff
lang en_US.UTF-8
keyboard us
network --onboot yes --device eth0 --bootproto dhcp
rootpw redhat
rootpw 123456
firewall --enabled --ssh
selinux --enforcing
timezone --utc America/New_York
Expand Down Expand Up @@ -48,32 +47,32 @@ prelink
%end

%post
echo "OS install is completed" > /dev/ttyS0
echo "remove rhgb quiet by grubby" > /dev/ttyS0
function ECHO { for TTY in `cat /proc/consoles | cut -f1 -d' '`; do echo "$*" > /dev/$TTY; done }
ECHO "OS install is completed"
ECHO "remove rhgb quiet by grubby"
grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)
echo "dhclient" > /dev/ttyS0
ECHO "dhclient"
dhclient
echo "get repo" > /dev/ttyS0
ECHO "get repo"
wget http://fileshare.englab.nay.redhat.com/pub/section2/repo/epel/rhel-autotest.repo -O /etc/yum.repos.d/rhel-autotest.repo
echo "yum makecache" > /dev/ttyS0
ECHO "yum makecache"
yum makecache
echo "yum install -y stress" > /dev/ttyS0
ECHO "yum install -y stress"
yum install -y stress
echo "chkconfig sshd on" > /dev/ttyS0
ECHO "chkconfig sshd on"
chkconfig sshd on
echo "PermitRootLogin in /etc/ssh/sshd_config" > /dev/ttyS0
ECHO "PermitRootLogin in /etc/ssh/sshd_config"
sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/g' /etc/ssh/sshd_config
echo "iptables -F" > /dev/ttyS0
ECHO "iptables -F"
iptables -F
echo "echo 0 > selinux/enforce" > /dev/ttyS0
ECHO "echo 0 > selinux/enforce"
echo 0 > /selinux/enforce
echo "chkconfig NetworkManager on" > /dev/ttyS0
ECHO "chkconfig NetworkManager on"
chkconfig NetworkManager on
echo "update ifcfg-eth0" > /dev/ttyS0
ECHO "update ifcfg-eth0"
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i "s/^ONBOOT=.*/ONBOOT=yes/g" /etc/sysconfig/network-scripts/ifcfg-eth0
echo "Disable lock cdrom udev rules" > /dev/ttyS0
ECHO "Disable lock cdrom udev rules"
sed -i "/--lock-media/s/^/#/" /usr/lib/udev/rules.d/60-cdrom_id.rules 2>/dev/null>&1
echo 'Post set up finished' > /dev/ttyS0
echo Post set up finished > /dev/hvc0
ECHO 'Post set up finished'
%end
8 changes: 3 additions & 5 deletions shared/unattended/Fedora-10.ks
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
install
KVM_TEST_MEDIUM
text
reboot
lang en_US.UTF-8
keyboard us
key --skip
Expand All @@ -15,7 +14,6 @@ bootloader --location=mbr --append="console=tty0 console=ttyS0,115200"
zerombr
clearpart --all --initlabel
autopart
reboot
poweroff

%packages
Expand All @@ -25,12 +23,12 @@ poweroff
ntpdate

%post
echo "OS install is completed" > /dev/ttyS0
function ECHO { for TTY in `cat /proc/consoles | cut -f1 -d' '`; do echo "$*" > /dev/$TTY; done }
ECHO "OS install is completed"
grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)
dhclient
chkconfig sshd on
iptables -F
echo 0 > /selinux/enforce
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
echo 'Post set up finished' > /dev/ttyS0
echo Post set up finished > /dev/hvc0
ECHO 'Post set up finished'
7 changes: 3 additions & 4 deletions shared/unattended/Fedora-11.ks
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
install
KVM_TEST_MEDIUM
text
reboot
lang en_US
keyboard us
network --bootproto dhcp
Expand All @@ -25,13 +24,13 @@ ntpdate
%end

%post
echo "OS install is completed" > /dev/ttyS0
function ECHO { for TTY in `cat /proc/consoles | cut -f1 -d' '`; do echo "$*" > /dev/$TTY; done }
ECHO "OS install is completed"
grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)
dhclient
chkconfig sshd on
iptables -F
echo 0 > /selinux/enforce
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
echo 'Post set up finished' > /dev/ttyS0
echo Post set up finished > /dev/hvc0
ECHO 'Post set up finished'
%end
7 changes: 3 additions & 4 deletions shared/unattended/Fedora-12.ks
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
install
KVM_TEST_MEDIUM
text
reboot
lang en_US
keyboard us
network --bootproto dhcp
Expand All @@ -25,13 +24,13 @@ ntpdate
%end

%post
echo "OS install is completed" > /dev/ttyS0
function ECHO { for TTY in `cat /proc/consoles | cut -f1 -d' '`; do echo "$*" > /dev/$TTY; done }
ECHO "OS install is completed"
grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)
dhclient
chkconfig sshd on
iptables -F
echo 0 > /selinux/enforce
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
echo 'Post set up finished' > /dev/ttyS0
echo Post set up finished > /dev/hvc0
ECHO 'Post set up finished'
%end
7 changes: 3 additions & 4 deletions shared/unattended/Fedora-13.ks
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
install
KVM_TEST_MEDIUM
text
reboot
lang en_US
keyboard us
network --bootproto dhcp
Expand All @@ -25,13 +24,13 @@ ntpdate
%end

%post
echo "OS install is completed" > /dev/ttyS0
function ECHO { for TTY in `cat /proc/consoles | cut -f1 -d' '`; do echo "$*" > /dev/$TTY; done }
ECHO "OS install is completed"
grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)
dhclient
chkconfig sshd on
iptables -F
echo 0 > /selinux/enforce
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
echo 'Post set up finished' > /dev/ttyS0
echo Post set up finished > /dev/hvc0
ECHO 'Post set up finished'
%end
7 changes: 3 additions & 4 deletions shared/unattended/Fedora-14.ks
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
install
KVM_TEST_MEDIUM
text
reboot
lang en_US
keyboard us
network --bootproto dhcp
Expand All @@ -26,13 +25,13 @@ dmidecode
%end

%post
echo "OS install is completed" > /dev/ttyS0
function ECHO { for TTY in `cat /proc/consoles | cut -f1 -d' '`; do echo "$*" > /dev/$TTY; done }
ECHO "OS install is completed"
grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)
dhclient
chkconfig sshd on
iptables -F
echo 0 > /selinux/enforce
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
echo 'Post set up finished' > /dev/ttyS0
echo Post set up finished > /dev/hvc0
ECHO 'Post set up finished'
%end
7 changes: 3 additions & 4 deletions shared/unattended/Fedora-15.ks
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
install
KVM_TEST_MEDIUM
text
reboot
lang en_US
keyboard us
network --bootproto dhcp
Expand All @@ -27,13 +26,13 @@ dmidecode
%end

%post
echo "OS install is completed" > /dev/ttyS0
function ECHO { for TTY in `cat /proc/consoles | cut -f1 -d' '`; do echo "$*" > /dev/$TTY; done }
ECHO "OS install is completed"
grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)
dhclient
chkconfig sshd on
iptables -F
echo 0 > /selinux/enforce
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
echo 'Post set up finished' > /dev/ttyS0
echo Post set up finished > /dev/hvc0
ECHO 'Post set up finished'
%end
7 changes: 3 additions & 4 deletions shared/unattended/Fedora-16.ks
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
install
KVM_TEST_MEDIUM
text
reboot
lang en_US
keyboard us
network --bootproto dhcp
Expand All @@ -25,13 +24,13 @@ autopart
%end

%post
echo "OS install is completed" > /dev/ttyS0
function ECHO { for TTY in `cat /proc/consoles | cut -f1 -d' '`; do echo "$*" > /dev/$TTY; done }
ECHO "OS install is completed"
grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)
dhclient
chkconfig sshd on
iptables -F
echo 0 > /selinux/enforce
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
echo 'Post set up finished' > /dev/ttyS0
echo Post set up finished > /dev/hvc0
ECHO 'Post set up finished'
%end
7 changes: 3 additions & 4 deletions shared/unattended/Fedora-17.ks
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
install
KVM_TEST_MEDIUM
text
reboot
lang en_US
keyboard us
network --bootproto dhcp --hostname atest-guest
Expand All @@ -26,13 +25,13 @@ dmidecode
%end

%post
echo "OS install is completed" > /dev/ttyS0
function ECHO { for TTY in `cat /proc/consoles | cut -f1 -d' '`; do echo "$*" > /dev/$TTY; done }
ECHO "OS install is completed"
grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)
dhclient
chkconfig sshd on
iptables -F
echo 0 > /selinux/enforce
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
echo 'Post set up finished' > /dev/ttyS0
echo Post set up finished > /dev/hvc0
ECHO 'Post set up finished'
%end
7 changes: 3 additions & 4 deletions shared/unattended/Fedora-18.ks
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
install
KVM_TEST_MEDIUM
text
reboot
lang en_US
keyboard us
network --bootproto dhcp --hostname atest-guest
Expand All @@ -26,14 +25,14 @@ dmidecode
%end

%post
echo "OS install is completed" > /dev/ttyS0
function ECHO { for TTY in `cat /proc/consoles | cut -f1 -d' '`; do echo "$*" > /dev/$TTY; done }
ECHO "OS install is completed"
grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)
dhclient
chkconfig sshd on
iptables -F
systemctl mask tmp.mount
echo 0 > /selinux/enforce
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
echo 'Post set up finished' > /dev/ttyS0
echo Post set up finished > /dev/hvc0
ECHO 'Post set up finished'
%end
7 changes: 3 additions & 4 deletions shared/unattended/Fedora-19.ks
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
install
KVM_TEST_MEDIUM
text
reboot
lang en_US
keyboard us
network --bootproto dhcp --hostname atest-guest
Expand All @@ -25,14 +24,14 @@ dmidecode
%end

%post
echo "OS install is completed" > /dev/ttyS0
function ECHO { for TTY in `cat /proc/consoles | cut -f1 -d' '`; do echo "$*" > /dev/$TTY; done }
ECHO "OS install is completed"
grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)
dhclient
chkconfig sshd on
iptables -F
systemctl mask tmp.mount
echo 0 > /selinux/enforce
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
echo 'Post set up finished' > /dev/ttyS0
echo Post set up finished > /dev/hvc0
ECHO 'Post set up finished'
%end
7 changes: 3 additions & 4 deletions shared/unattended/Fedora-20.ks
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
install
KVM_TEST_MEDIUM
text
reboot
lang en_US
keyboard us
network --bootproto dhcp --hostname atest-guest
Expand All @@ -24,14 +23,14 @@ autopart
%end

%post
echo "OS install is completed" > /dev/ttyS0
function ECHO { for TTY in `cat /proc/consoles | cut -f1 -d' '`; do echo "$*" > /dev/$TTY; done }
ECHO "OS install is completed"
grubby --remove-args="rhgb quiet" --update-kernel=$(grubby --default-kernel)
dhclient
chkconfig sshd on
iptables -F
systemctl mask tmp.mount
echo 0 > /selinux/enforce
sed -i "/^HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
echo 'Post set up finished' > /dev/ttyS0
echo Post set up finished > /dev/hvc0
ECHO 'Post set up finished'
%end