顯示具有 virtualbox 標籤的文章。 顯示所有文章
顯示具有 virtualbox 標籤的文章。 顯示所有文章

2012年2月20日 星期一

解決virtualbox在chakra中無法正常執行vm的問題

在chakra中你要啟動virtualbox中的虛擬機器時可能會出現如下的訊息
'/etc/init.d/vboxdrv setup'
在chakra中打這行指令是沒用的
你得要打下面這行指令才行

2011年5月16日 星期一

在ubuntu下安裝ppstream

之前一直都是用virtualbox+windows來看pps
後來發現官方有提供ubuntu版本的pps
安裝之後發現居然要有root權限才能夠使用!!!
這實在是太OOXX了!
所以去找了些資料
發現有人已經改好可以不用root就可以使用的pps了
你可以到這裡來下載免root版本的ppstream
安裝ppstream之前要先裝libqt4-core libqt4-gui

sudo apt-get install libqt4-core libqt4-gui

裝完之後再安裝ppstream

sudo dpkg -i ppstream_1.0.0-3lucid2_i386.deb
然後再安裝官版的PPS

sudo dpkg -i ppstream_1.0.0-1_i386.deb

裝完之後就不用再用root來啟動這個程式了

2011年5月10日 星期二

Max Wu網友建議的kubuntu 10.04常用軟體

文章分類: 軟體應用
[作者:Max Wu]

編按:Max Wu是我們讀者之一,本篇為他的第一篇處女作,他是熱衷於Linux的網友,這次主題是關於Kubuntu(使用KDE Plasma為桌面環境的Ubuntu)上的推薦程式清單。對於網友的投稿,文章一樣僅排版,並不會作校稿,以避免爭議,如果有Linux問題,歡迎在回應中詢問Max Wu,同時也請癮科科們多給他鼓勵(幫忙按臉書的讚是最直接的鼓勵)。

正文開始:


2010年8月20日 星期五

使用virtualbox卻出現kvm的錯誤訊息

執行virtualbox的時候突然出現如下的錯誤訊息
VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE).
原來kvm和virtualbox是不能共同存在的
於是把kvm移除後重開機就ok了!
步驟如下
sudo apt-get remove --purge kvm
sudo rmmod kvm-intel
sudo rm -rf /lib/modules/`uname -r`/kernel/arch/x86/kvm

如何clone virtualbox產生的vdi檔

原本以為只要用cp就可以解決這個問題
沒想到卻會遇到uuid重複的問題
查了一下才知道原來得用virtualbox提供的工具才能做到複製

VBoxManage (大小寫要對,我就是沒注意到,害我搞了好久)
$cd  ~/.VirtualBox/HardDisks
$VBoxManage clonehd source.vdi target.vdi
指定source和target之後接下來等clone完之後就好了!
叫出virtualbox按下ctrl d叫出虛擬媒體管理員
再將複製完的vdi加入媒體中就可以了
以下是VBoxManage的相關說明


Oracle VM VirtualBox Command Line Management Interface Version 3.2.8
(C) 2005-2010 Oracle Corporation
All rights reserved.

Usage:

VBoxManage [-v|--version]    print version number and exit
VBoxManage [-q|--nologo] ... suppress the logo

VBoxManage list [--long|-l] vms|runningvms|ostypes|hostdvds|hostfloppies|
                            bridgedifs|hostonlyifs|dhcpservers|hostinfo|
                            hostcpuids|hddbackends|hdds|dvds|floppies|
                            usbhost|usbfilters|systemproperties

VBoxManage showvminfo       | [--details] [--statistics]
                            [--machinereadable]
VBoxManage showvminfo       | --log

VBoxManage registervm      

VBoxManage unregistervm     | [--delete]

VBoxManage createvm         --name
                            [--ostype ]
                            [--register]
                            [--basefolder | --settingsfile ]
                            [--uuid ]

VBoxManage modifyvm        
                            [--name ]
                            [--ostype ]
                            [--memory ]
                            [--pagefusion on|off]
                            [--vram ]
                            [--acpi on|off]
                            [--ioapic on|off]
                            [--pae on|off]
                            [--hpet on|off]
                            [--hwvirtex on|off]
                            [--nestedpaging on|off]
                            [--largepages on|off]
                            [--vtxvpid on|off]
                            [--synthcpu on|off]
                            [--cpuidset ]
                            [--cpuidremove ]
                            [--cpuidremoveall]
                            [--hardwareuuid ]
                            [--cpus ]
                            [--cpuhotplug on|off]
                            [--plugcpu ]
                            [--unplugcpu ]
                            [--rtcuseutc on|off]
                            [--monitorcount ]
                            [--accelerate3d on|off]
                            [--accelerate2dvideo on|off]
                            [--firmware bios|efi|efi32|efi64]
                            [--bioslogofadein on|off]
                            [--bioslogofadeout on|off]
                            [--bioslogodisplaytime ]
                            [--bioslogoimagepath ]
                            [--biosbootmenu disabled|menuonly|messageandmenu]
                            [--biossystemtimeoffset ]
                            [--biospxedebug on|off]
                            [--boot<1-4> none|floppy|dvd|disk|net>]
                            [--nic<1-N> none|null|nat|bridged|intnet|hostonly|
                                        vde]
                            [--nictype<1-N> Am79C970A|Am79C973|
                                            82540EM|82543GC|82545EM|
                                            virtio]
                            [--cableconnected<1-N> on|off]
                            [--nictrace<1-N> on|off]
                            [--nictracefile<1-N> ]
                            [--nicspeed<1-N> ]
                            [--nicbootprio<1-N> ]
                            [--bridgeadapter<1-N> none|]
                            [--hostonlyadapter<1-N> none|]
                            [--intnet<1-N> ]
                            [--natnet<1-N> |default]
                            [--vdenet<1-N> |default]
                            [--natsettings<1-N> [],[],
                                                [],[],
                                                []]
                            [--natpf<1-N> [],tcp|udp,[],
                                          ,[],]
                            [--natpf<1-N> delete ]
                            [--nattftpprefix<1-N> ]
                            [--nattftpfile<1-N> ]
                            [--nattftpserver<1-N> ]
                            [--natdnspassdomain<1-N> on|off]
                            [--natdnsproxy<1-N> on|off]
                            [--natdnshostresolver<1-N> on|off]
                            [--nataliasmode<1-N> default|[log],[proxyonly],
                                                         [sameports]]
                            [--macaddress<1-N> auto|]
                            [--mouse ps2|usb|usbtablet
                            [--keyboard ps2|usb
                            [--uart<1-N> off| ]
                            [--uartmode<1-N> disconnected|
                                             server |
                                             client |
                                             file |
                                             ]
                            [--guestmemoryballoon ]
                            [--gueststatisticsinterval ]
                            [--audio none|null|oss|alsa|pulse]
                            [--audiocontroller ac97|sb16]
                            [--clipboard disabled|hosttoguest|guesttohost|
                                         bidirectional]
                            [--vrdp on|off]
                            [--vrdpport default|]
                            [--vrdpaddress ]
                            [--vrdpauthtype null|external|guest]
                            [--vrdpmulticon on|off]
                            [--vrdpreusecon on|off]
                            [--vrdpvideochannel on|off]
                            [--vrdpvideochannelquality ]
                            [--usb on|off]
                            [--usbehci on|off]
                            [--snapshotfolder default|]
                            [--teleporter on|off]
                            [--teleporterport ]
                            [--teleporteraddress                             [--teleporterpassword ]

VBoxManage import           [--dry-run|-n] [more options]
                            (run with -n to have options displayed
                             for a particular OVF)

VBoxManage export           --output|-o
                            [--legacy09]
                            [--vsys ]
                                    [--product ]
                                    [--producturl ]
                                    [--vendor ]
                                    [--vendorurl ]
                                    [--version ]
                                    [--eula ]
                                    [--eulafile ]

VBoxManage startvm          |
                            [--type gui|sdl|vrdp|headless]

VBoxManage controlvm        |
                            pause|resume|reset|poweroff|savestate|
                            acpipowerbutton|acpisleepbutton|
                            keyboardputscancode [ ...]|
                            injectnmi|
                            setlinkstate<1-N> on|off |
                            nic<1-N> null|nat|bridged|intnet|hostonly
                                     [] |
                            nictrace<1-N> on|off
                            nictracefile<1-N>
                            guestmemoryballoon ]
                            gueststatisticsinterval ]
                            usbattach |

|
                            usbdetach |
|
                            vrdp on|off |
                            vrdpport default| |
                            vrdpvideochannelquality
                            setvideomodehint [display] |
                            setcredentials
                                           [--allowlocallogon ] |
                            teleport --host --port
                                   [--maxdowntime ] [--password password]
                            plugcpu
                            unplugcpu

VBoxManage discardstate     |

VBoxManage adoptstate       |

VBoxManage snapshot         |
                            take [--description ] [--pause] |
                            delete | |
                            restore | |
                            restorecurrent |
                            edit ||--current
                                 [--name ]
                                 [--description ] |
                            showvminfo |

VBoxManage openmedium       disk|dvd|floppy
                            [--type normal|immutable|writethrough|
                                    shareable] (disk only)
                            [--uuid ]
                            [--parentuuid ] (disk only)

VBoxManage closemedium      disk|dvd|floppy |
                            [--delete]

VBoxManage storageattach   
                            --storagectl
                            --port
                            --device
                            [--type dvddrive|hdd|fdd]
                            [--medium none|emptydrive|
                                      ||host:]
                            [--passthrough on|off]
                            [--forceunmount]

VBoxManage storagectl      
                            --name
                            [--add ide|sata|scsi|floppy|sas]
                            [--controller LSILogic|LSILogicSAS|BusLogic|
                                          IntelAHCI|PIIX3|PIIX4|ICH6|I82078]
                            [--sataideemulation<1-4> <1-30>]
                            [--sataportcount <1-30>]
                            [--hostiocache on|off]
                            [--remove]

VBoxManage showhdinfo       |

VBoxManage createhd         --filename
                            --size
                            [--format VDI|VMDK|VHD] (default: VDI)
                            [--variant Standard,Fixed,Split2G,Stream,ESX]
                            [--type normal|writethrough|
                                    shareable] (default: normal)
                            [--comment ]
                            [--remember]

VBoxManage modifyhd         |
                            [--type normal|writethrough|immutable|shareable]
                            [--autoreset on|off]
                            [--compact]

VBoxManage clonehd          |
                            [--format VDI|VMDK|VHD|RAW|]
                            [--variant Standard,Fixed,Split2G,Stream,ESX]
                            [--type normal|writethrough|immutable|shareable]
                            [--remember] [--existing]

VBoxManage convertfromraw  
                            [--format VDI|VMDK|VHD]
                            [--variant Standard,Fixed,Split2G,Stream,ESX]
VBoxManage convertfromraw   stdin
                            [--format VDI|VMDK|VHD]
                            [--variant Standard,Fixed,Split2G,Stream,ESX]

VBoxManage addiscsidisk     --server |
                            --target
                            [--port ]
                            [--lun ]
                            [--encodedlun ]
                            [--username ]
                            [--password ]
                            [--type normal|writethrough|immutable|shareable]
                            [--intnet]

VBoxManage getextradata     global||
                            |enumerate

VBoxManage setextradata     global||
                           
                            [] (no value deletes key)

VBoxManage setproperty      hdfolder default| |
                            machinefolder default| |
                            vrdpauthlibrary default| |
                            websrvauthlibrary default|null| |
                            loghistorycount

VBoxManage usbfilter        add
                            --target ||global
                            --name
                            --action ignore|hold (global filters only)
                            [--active yes|no] (yes)
                            [--vendorid ] (null)
                            [--productid ] (null)
                            [--revision ] (null)
                            [--manufacturer ] (null)
                            [--product ] (null)
                            [--remote yes|no] (null, VM filters only)
                            [--serialnumber ] (null)
                            [--maskedinterfaces ]

VBoxManage usbfilter        modify
                            --target ||global
                            [--name ]
                            [--action ignore|hold] (global filters only)
                            [--active yes|no]
                            [--vendorid |""]
                            [--productid |""]
                            [--revision |""]
                            [--manufacturer |""]
                            [--product |""]
                            [--remote yes|no] (null, VM filters only)
                            [--serialnumber |""]
                            [--maskedinterfaces ]

VBoxManage usbfilter        remove
                            --target ||global

VBoxManage sharedfolder     add |
                            --name --hostpath
                            [--transient] [--readonly]

VBoxManage sharedfolder     remove |
                            --name [--transient]

VBoxManage vmstatistics     | [--reset]
                            [--pattern ] [--descriptions]

VBoxManage guestproperty    get |
                            [--verbose]

VBoxManage guestproperty    set |
                            [ [--flags ]]

VBoxManage guestproperty    enumerate |
                            [--patterns ]

VBoxManage guestproperty    wait |
                            [--timeout ] [--fail-on-timeout]

VBoxManage guestcontrol     execute |
                           
                            --username --password
                            [--arguments ""]
                            [--environment "= [=]"]
                            [--flags ] [--timeout ]
                            [--verbose] [--wait-for exit,stdout,stderr||]

VBoxManage metrics          list [*|host| []]
                                                 (comma-separated)

VBoxManage metrics          setup
                            [--period ] (default: 1)
                            [--samples ] (default: 1)
                            [--list]
                            [*|host| []]

VBoxManage metrics          query [*|host| []]

VBoxManage metrics          enable
                            [--list]
                            [*|host| []]

VBoxManage metrics          disable
                            [--list]
                            [*|host| []]

VBoxManage metrics          collect
                            [--period ] (default: 1)
                            [--samples ] (default: 1)
                            [--list]
                            [--detach]
                            [*|host| []]

VBoxManage hostonlyif       ipconfig
                            [--dhcp |
                            --ip [--netmask (def: 255.255.255.0)] |
                            --ipv6 [--netmasklengthv6 (def: 64)]]

VBoxManage dhcpserver       add|modify --netname |
                                       --ifname
                                [--ip
                                 --netmask
                                 --lowerip
                                 --upperip ]
                                [--enable | --disable]

VBoxManage dhcpserver       remove --netname |
                                   --ifname



2010年8月4日 星期三

在ubuntu中使用virtualbox的usb功能


For Karmic


打開終端機
  1. 將你的帳號加入vboxusers group
    if [ "`grep vboxusers /etc/group|grep $USER`" == "" ] ; then sudo usermod -G vboxusers -a $USER ; fi

This works for Karmic 9.10 Host and Windows XP Guest


From a terminal run the following command:
  1. 下面這行指令會顯示你的user id,看起來會像是 vboxusers:x:123:myself 而這個123就是你在這台機器上的user id
    grep vbox /etc/group 
  2. 修改fstab的檔案
    sudo vi /etc/fstab
  3. 加入以下這一行
    none /proc/bus/usb usbfs devgid=userid,devmode=664 0 0 

    注意user id的部份: none /proc/bus/usb usbfs devig=123,devmod=664 0 0
  4. 重開機

  5. 打開VirtualBox (但先不要開啟虛擬作業系統)

  6. 按下要修改的虛擬機器設定值

    1. 點選左側的「系統」
    2. 勾選「啟用IO APIC」

    1. 點選左側的「usb」
    2. 勾選「啟用USB控制器」 也勾選「啟用 USB 2.0 (EHCI)控制器
    3. 點選右側的「從裝置加入篩選器」(就是畫面右側有個綠色加號的那個)然後勾選你要的usb裝置
  7. 將你的虛擬機器開機,應該就可以抓到你的usb裝置了!