Como formatar e criar um pen drive no Linux

Primeiro vamos identificar nosso pendrive com o comando $ mount A saída do comando sera portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1626292k,mode=755) nsfs on /run/snapd/ns/whatsdesk.mnt type nsfs (rw) /dev/sdb1 on /media/junior/538B-BA22 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) Assim que identificamos (no meu caso foi o /dev/sdb1) iremos desmontar o pendrive sudo umount /dev/sdb1 Para o sistema de arquivos vFAT (FAT32) sudo mkfs.vfat /dev/sdb1 Para sistema de arquivos NTFS sudo mkfs.ntfs /dev/sdb1 Para o sistema de arquivos EXT4 sudo mkfs.ext4 /dev/sdb1 Agora vamos criar nosso pendrive com um vmware (como exemplo) sudo dd if=/home/junior/Downloads/isos/vmware7.iso of=/dev/sdb status=progress && sync

VMware - Linha de comando

Olá hoje vamos ver a administração do VMware ESXi através da linha de comando:



vim-cmd vmsvc/getallvms
Lists all vm's running on hypervisor and provides vmid


vim-cmd vmsvc/power.off vmid
Powers off vmid referenced from getallvms command


vim-cmd vmsvc/power.on vmid
Powers off vmid referenced from getallvms command


vim-cmd vmsvc/power.reboot vmid
Reboots vmid referenced from getallvms command


vim-cmd vmsvc/destroy vmid
Deletes the vmdk and vmx files from disk


vim-cmd hostsvc/maintenance_mode_enter
Puts hypervisor into maintenance mode


vim-cmd hostsvc/maintenance_mode_exit
Takes hypervisor out of maintenance mode


vim-cmd solo/registervm /vmfs/vol/datastore/dir/vm.vmx
Registers vm in hypervisor inventory


vim-cmd vmsvc/unregister vmid
Unregisters vm with hypervisor


vim-cmd vmsvc/tools.install vmid
Starts vmware tools installation for VM


vim-cmd hostsvc/net/info
Provides information about hypervisor networking


chkconfig -l
Shows daemons running on hypervisor. Can also be used for configuration.


esxtop
Same as linux top for vmware


vmkerrcode -l
List of vmkernel errors


esxcfg-info
Lists a LOT of information about the esx host


esxcfg-nics -l
Lists information about NIC's. Can also be used for configuration.


esxcfg-vswitch -l
Lists information about virtual switching. Can also be used for configuration.


dcui
Provides console screen to ssh session


vsish
Vmware interactive shell

Lembrando que podemos usar o VMware vSphere Client, mas como bom "nerd" o comando é mais rápido.

fonte: http://www.vmware.com/br/


Att Junior.

Comentários

Postagens mais visitadas deste blog

Instalando e Atualizando GLPI no Debian Jessie (8.7.1)