Created
September 5, 2013 00:27
-
-
Save mattconnolly/6444557 to your computer and use it in GitHub Desktop.
Using zonecfg to set qemu_extra_opts in SmartOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zonecfg -z <uuid> | |
# add attr | |
# set name=qemu-extra-opts | |
# set type=string | |
# set value="LXNtcCBjcHVzPTEsY29yZXM9NCx0aHJlYWRzPTI=" | |
# end | |
# commit | |
# exit | |
Then reboot the machine. The value is the base64 encoded string that will be added to the qemu-kvm options. The above is "-smp cpus=1,cores=4,threads=2", which plays nice with Windows which for some stupid reason only supports 2 cpus. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
new Buffer("-smp cpus=1,cores=4,threads=2").toString('base64')