summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xvmhtool6
1 files changed, 3 insertions, 3 deletions
diff --git a/vmhtool b/vmhtool
index d3e4d2e..f56b133 100755
--- a/vmhtool
+++ b/vmhtool
@@ -87,7 +87,7 @@ die "$vm_path does not exist" if ! -e $vm_path || ! -d $vm_path;
my $vm_info = $vm_path . '/.vminfo';
my $vm_conf = $vm_path . '/.vmconf';
-my $vm_gdb_port = $cmd_opts{gdb_conn} ? empty_port() : -1;
+my $vm_gdb_port = $cmd_opts{gdb_conn} ? 1234 : -1;
my $qemu_bin_path;
my $qemu_img_bin_path;
@@ -329,7 +329,7 @@ sub destroy_vm_net {
my %qemu_linux_opts = (
mach => "-machine q35",
cpu => $cmd_opts{cpus_num} ? "-enable-kvm -cpu host -smp $cmd_opts{cpus_num}" : "-enable-kvm -cpu host -smp sockets=1,cores=2,threads=2",
- mem => "-m 2048",
+ mem => "-m 4096",
bus => "-device qemu-xhci,id=xhci -device virtio-scsi-pci,id=scsi",
hdd => " -device scsi-hd,drive=hd -drive if=none,file=%s,cache=writeback,id=hd,format=raw,unit=0",
net => "-device e1000,netdev=net0,mac=%s -netdev type=tap,id=net0,ifname=%s,script=no,downscript=no",
@@ -345,7 +345,7 @@ my %qemu_linux_opts = (
my %qemu_win_opts = (
mach => "-machine q35",
cpu => $cmd_opts{cpus_num} ? "-enable-kvm -cpu host -smp $cmd_opts{cpus_num}" : "-enable-kvm -cpu host -smp sockets=1,cores=2,threads=2",
- mem => "-m 4096",
+ mem => "-m 2048",
bus => "-device ich9-ahci,id=ahci -device virtio-scsi-pci,id=scsi -device qemu-xhci,id=xhci",
hdd => "-device scsi-hd,drive=hd,bootindex=0 -drive if=none,file=%s,cache=writeback,id=hd,format=raw,unit=0",
cdrom => "-device scsi-cd,drive=cd,bootindex=1 -drive if=none,file=%s,format=raw,id=cd",